<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // prompt 系统弹窗


        while (true) {
            const year = prompt("你的年龄").trim();
            console.log(year);
            if (!year) continue;
            console.log(year == 12 ? "正确" : "错误");
            break;
        }
    </script>
</body>

</html>